BankConnectionsResourceTransactionResourceStatusTransitions.fromJson constructor

BankConnectionsResourceTransactionResourceStatusTransitions.fromJson(
  1. Object? json
)

Implementation

factory BankConnectionsResourceTransactionResourceStatusTransitions.fromJson(
    Object? json) {
  final map = (json as Map).cast<String, Object?>();
  return BankConnectionsResourceTransactionResourceStatusTransitions(
    postedAt: map['posted_at'] == null
        ? null
        : DateTime.fromMillisecondsSinceEpoch(
            (map['posted_at'] as int).toInt()),
    voidAt: map['void_at'] == null
        ? null
        : DateTime.fromMillisecondsSinceEpoch(
            (map['void_at'] as int).toInt()),
  );
}