FeatureGroup.fromJson constructor
FeatureGroup.fromJson(
- Map<String, dynamic> json
)
Implementation
factory FeatureGroup.fromJson(Map<String, dynamic> json) {
return FeatureGroup(
creationTime: timeStampFromJson(json['CreationTime']),
description: json['Description'] as String?,
eventTimeFeatureName: json['EventTimeFeatureName'] as String?,
failureReason: json['FailureReason'] as String?,
featureDefinitions: (json['FeatureDefinitions'] as List?)
?.whereNotNull()
.map((e) => FeatureDefinition.fromJson(e as Map<String, dynamic>))
.toList(),
featureGroupArn: json['FeatureGroupArn'] as String?,
featureGroupName: json['FeatureGroupName'] as String?,
featureGroupStatus:
(json['FeatureGroupStatus'] as String?)?.toFeatureGroupStatus(),
offlineStoreConfig: json['OfflineStoreConfig'] != null
? OfflineStoreConfig.fromJson(
json['OfflineStoreConfig'] as Map<String, dynamic>)
: null,
offlineStoreStatus: json['OfflineStoreStatus'] != null
? OfflineStoreStatus.fromJson(
json['OfflineStoreStatus'] as Map<String, dynamic>)
: null,
onlineStoreConfig: json['OnlineStoreConfig'] != null
? OnlineStoreConfig.fromJson(
json['OnlineStoreConfig'] as Map<String, dynamic>)
: null,
recordIdentifierFeatureName:
json['RecordIdentifierFeatureName'] as String?,
roleArn: json['RoleArn'] as String?,
tags: (json['Tags'] as List?)
?.whereNotNull()
.map((e) => Tag.fromJson(e as Map<String, dynamic>))
.toList(),
);
}