Record.fromJson constructor
Implementation
factory Record.fromJson(Map<String, dynamic> json) {
return Record(
awsRegion: json['awsRegion'] as String?,
dynamodb: json['dynamodb'] != null
? StreamRecord.fromJson(json['dynamodb'] as Map<String, dynamic>)
: null,
eventID: json['eventID'] as String?,
eventName: (json['eventName'] as String?)?.toOperationType(),
eventSource: json['eventSource'] as String?,
eventVersion: json['eventVersion'] as String?,
userIdentity: json['userIdentity'] != null
? Identity.fromJson(json['userIdentity'] as Map<String, dynamic>)
: null,
);
}