fromMap static method

MemberClaimEntity? fromMap(
  1. Object? o, {
  2. Map<String, String>? newDocumentIds,
})

Implementation

static MemberClaimEntity? fromMap(Object? o,
    {Map<String, String>? newDocumentIds}) {
  if (o == null) return null;
  var map = o as Map<String, dynamic>;

  return MemberClaimEntity(
    refreshValue: int.tryParse(map['refreshValue'].toString()),
  );
}