fromDynamic static method
Creates an instance from a JSON-like map structure. This expects the following format:
{
"collectionPath": <String>,
"documentId": <String>,
"equals": <bool>,
"value": <String>
}
See also:
JsonClass.parseBool
Implementation
static AssertFirestoreValueStep? fromDynamic(dynamic map) {
AssertFirestoreValueStep? result;
if (map != null) {
result = AssertFirestoreValueStep(
collectionPath: map['collectionPath'],
documentId: map['documentId'],
equals:
map['equals'] == null ? true : JsonClass.parseBool(map['equals']),
value: map['value']?.toString(),
);
}
return result;
}