getServerTimestampBehaviorString function

String getServerTimestampBehaviorString(
  1. ServerTimestampBehavior serverTimestampBehavior
)

Implementation

String getServerTimestampBehaviorString(
  ServerTimestampBehavior serverTimestampBehavior,
) {
  switch (serverTimestampBehavior) {
    case ServerTimestampBehavior.none:
      return 'none';
    case ServerTimestampBehavior.estimate:
      return 'estimate';
    case ServerTimestampBehavior.previous:
      return 'previous';
  }
}