DescribeFeatureGroupResponse.fromJson constructor

DescribeFeatureGroupResponse.fromJson(
  1. Map<String, dynamic> json
)

Implementation

factory DescribeFeatureGroupResponse.fromJson(Map<String, dynamic> json) {
  return DescribeFeatureGroupResponse(
    creationTime:
        nonNullableTimeStampFromJson(json['CreationTime'] as Object),
    eventTimeFeatureName: json['EventTimeFeatureName'] 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,
    nextToken: json['NextToken'] as String,
    recordIdentifierFeatureName:
        json['RecordIdentifierFeatureName'] as String,
    description: json['Description'] as String?,
    failureReason: json['FailureReason'] 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,
    roleArn: json['RoleArn'] as String?,
  );
}