· 6 years ago · Apr 16, 2019, 03:50 PM
1using Newtonsoft.Json.Linq;
2using System;
3using System.Collections.Generic;
4using System.Text;
5
6namespace AWSLambda2
7{
8 class SecretDict
9 {
10 public string accessKey { get; set; }
11 public string secretKey { get; set; }
12 public string TableName { get; set; }
13
14 public SecretDict(string json)
15 {
16 JObject jObject = JObject.Parse(json);
17 accessKey = (string)jObject["AccountAccessKey"];
18 secretKey = (string)jObject["AccountSecretKey"];
19 TableName = (string)jObject["TableNameWorkWith"];
20 }
21
22 }
23}