private static FieldCollectionImpl ParseFields(JsonWorkItem workItem) { JProperty fieldsProperty = ((JObject)workItem.JsonValue).Properties().First(p => p.Name == "fields"); JToken fieldsValues = fieldsProperty.Value; FieldCollectionImpl fields = FieldCollectionImpl.FromToken(fieldsValues); return(fields); }
internal static FieldCollectionImpl GetInstance([CallerMemberName] string callerName = "") { JToken json = new JObject(); JsonSource(ref json); FieldCollectionImpl instance = FieldCollectionImpl.FromToken(json); InstanceFactory(ref instance, callerName); return(instance); }